﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Vlc.DotNet.Forms;
using System.IO;
namespace Audio3
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }
        public VlcControl myVlcControl = null;
        private void Form2_Load(object sender, EventArgs e)
        {


     


            this.myVlcControl = new VlcControl();
            myVlcControl.Width = 300;
            myVlcControl.Height = 300;
            myVlcControl.Left = 50;
            myVlcControl.Top = 50;
            this.Controls.Add(myVlcControl);

            //指定文件地址播放
            string filename = @"F:\MyDocument\视频\COOLUI理念篇.mp4";
            //myVlcControl.Play(new Uri(filename));
            myVlcControl.Play(new System.IO.FileInfo(filename));


            //myVlcControl.SetMedia(new FileInfo(filename));
            //myVlcControl.Play();

        }
    }
}
